home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: sstrader@ix.netcom.com (Scott Strader )
- Newsgroups: comp.lang.c++
- Subject: Re: HELP -->> How to Include a File ??
- Date: 29 Feb 1996 19:10:52 GMT
- Organization: Netcom
- Message-ID: <4h4tns$714@cloner4.netcom.com>
- References: <4gtgo0$jvr@news.service.uci.edu>
- NNTP-Posting-Host: atl-ga12-25.ix.netcom.com
- X-NETCOM-Date: Thu Feb 29 11:10:52 AM PST 1996
-
- In <4gtgo0$jvr@news.service.uci.edu> yqian@leakey.oac.uci.edu (Yao-jin
- Qian) writes:
-
- >
- >Dear Netter:
- >
- >I have a porblem with MSC++4.0. When I include a *.cpp file ( such as a
- >simple function definition or a simple class) by using the command of
- >"add file to Project", I could not compile that file !! Each time I got
- an error
- >message "C1010", can not find precompiled header file or somthing, but I
- >do not include any precompiled header in my little *.cpp file.
- >
- >Coming from WorkStation, this is really frustrating for me since I used
- >to a lot of small files being compiled seprately, then combined togather
- >either to a lib file or link them by my makefile program.
- >
- >Please Help me.
- >
- >
- >Thanks for Your time
- >
- >Yaojin Qian
- >
- >University of California, Irvine
- >Medical Center
- >Dept. of Radiation Oncology
- >yqian@fourier.oac.uci.edu
- >
-
- You need:
-
- #include "stdafx.h"
-
- with the include section of your CPP file.
-
- Look under Build|Settings... On the C/C++ tab, look at the Category
- "Precompile Headers."
-
- Scott S.
- sstrader@ix.netcom.com
-